<!-- 富文本 -->
<template>
	<view class="rich-wrap">
		<web-view src="path"></web-view>
	</view>
</template>

<script>
import Auth from '@/shopro/permission/index.js';
export default {
	components: {},
	data() {
		return {
			richText: ''
		};
	},
	computed: {},
	onLoad() {
		this.getRichText();
	},
	methods: {
		getRichText() {
			uni.requireNativePlugin('pdfjs').previewPDF({
        url: 'http://your.server.com/your.pdf',
        title: 'Your PDF document'
      })
		}
	}
};
</script>

<style lang="scss">
.content_box {
	background: #fff;
	padding: 30rpx;
}
</style>
